package com.gs.orderservice.controller;

import com.gs.orderservice.entity.SysUser;
import com.gs.orderservice.feign.UserFeign;
import com.gs.orderservice.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ProjectName: apollomodulestest
 * @Package: com.gs.orderservice.controller
 * @Description: java类作用描述
 * @Author: guoshuai
 * @CreateDate: 2019/7/26 20:07
 * @UpdateUser: guoshuai
 * @UpdateDate: 2019/7/26 20:07
 * @UpdateRemark: The modified content
 * @Version: 1.0
 **/

@RestController
public class OrderController {
    @Resource
    private OrderService orderService;

    @RequestMapping("/saveOrderToUser")
    public void saveUser(){
        SysUser sysUser = new SysUser();
        sysUser.setId(5);
        sysUser.setName("2342432");
        sysUser.setPassword("3243232");
        orderService.saveUserInfo(sysUser);


    }



}
